import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
//创建Vuex实例对象
const store = new Vuex.Store({
  state: {
    imgCode: '',
  },
  mutations: {
    setImgCode(state, code) {
      state.imgCode = code
    },
  },
  actions: {},
})
export default store
